<div class="container" style="min-height: 206px;">
    <div class="heading"><a id="sidebaropengear" onclick="showSideBarSettings();" href="javascript:void(0);"><img
        width=16" height="16" src="./images/gear.png" alt="" /></a>Information
    </div>
    <div id="selectedcustomernav" class="inside" style="padding-bottom:0px !important;">
        <input type="text" id="remote-users" style="width:143px !important;display:none"/>

        <div class="selectedcustomer" style="text-align:center;">
            <?php if(isset($location)):?>
            <center><img src="<?=getImage($location->customer->image,'images/content/',75,75);?>"/></center>
            <span id="selectedcustomer"><a href="index.php?r=salespersonportal/Customers/update&id=<?=$location->customer->custno?>"><?php echo $location->customer->lastname?></a></span>
            <?php else:?>
            <span id="selectedcustomer">None selected</span>
            <?php endif?>
        </div>


    </div>

    <div class="inside" style="padding-top:0px; padding-bottom:0px;">
        <h5 style="padding-left:11px;">Available Actions</h5>

        <ul class="links" style="margin-left:0px !important;">
            <li id='blankforvalidation2' style="display:none">&nbsp;</li>

            <?php if ($action == 'index'): ?>
            <li><a class="add-button" href="javascript:void(0)" id="createJob" onclick="">Add Contract</a></li>
            <?php elseif ($action == 'update'): ?>

            <li><a href="javascript:void(0)" class="save-button"  id="save-contract" onclick="saveContract(null);">Save</a></li>
            <li><a class="return-button"  href="javascript:void(0)" id="save-contract" onclick="saveContract({link: 'index.php?r=salespersonportal/contracts&custno=<?=$contract->custno?>&locno=<?=$contract->locno?>'});">Save and Return</a></li>
            <li><a  class="cancel-button" href="index.php?r=salespersonportal/contracts/cancel&contractid=<?=$contract->contractid?>">Cancel</a></li>
            <li><a  class="print-button"  onclick="saveContract({
                link:'index.php?r=pdf/Contract&contractid=<?=$contract->contractid?>',
                newtab:true})"
                >View/Print</a></li>
            <li><a  class="email-button" href="#" id="mailForm" onclick="">E-Mail</a></li>
            <?php elseif(Yii::app()->controller->action->id=='pagelist'): ?>
            <li><?php echo CHtml::link('Print Contract List',array('contractreport'),array('target'=>'_blank')); ?></li>
            <?php endif?>

        </ul>
        <div id="dialog"></div>
    </div>


</div>